package com.wlk.controller;

import com.wlk.pojo.dto.QueryGeneralLedgerConditionsDTO;
import com.wlk.service.GeneralLedgerViewService;
import com.wlk.utils.Result;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/generalLedgerView")
public class GeneralLedgerViewController {
    @Resource
    private GeneralLedgerViewService generalLedgerViewService;

    @PostMapping("/getGeneralLedgerView")
    public Result getGeneralLedgerViewList(@RequestBody QueryGeneralLedgerConditionsDTO queryGeneralLedgerConditionsDTO){
        return generalLedgerViewService.getByMutipleCondition(queryGeneralLedgerConditionsDTO);
    }
    @GetMapping("/getGenProTreeSet")
    public Result getGenProTreeSet(){
        return generalLedgerViewService.getGenProTreeSet();
    }

}
